/* eslint-disable import/no-anonymous-default-export */
import Home from '../pages/Home/Home'
import Main from '../pages/Main/Main'
import Order from '../pages/Order/Order'
import MyInfo from '../pages/MyInfo/MyInfo.jsx'
import StoreList from '../pages/Main/StoreList/StoreList'

import MainSetLocation from '../pages/Main/MainSetLocation/MainSetLocation'
import AddAddress from '../pages/Main/MainSetLocation/AddAddress'
import ShopDetails from '../pages/ShopDetails/ShopDetails'
import Drug from '../pages/Drug/Drug'
import Food from '../pages/Food/Food'
import Login from '../pages/Login/Login'
import Registered from '../pages/Login/Registered'
import Fruits from '../pages/Fruits/Fruits'
import Drink from '../pages/Drink/Drink'
import OrderDetails from '../pages/OrderDetails/OrderDetails'
import HCcustomerEvaluation from '../components/HCcustomerEvaluation/HCcustomerEvaluation'
import HCcollect from '../components/HCcollect/HCcollect'
import HCsite from '../components/HCsite/HCsite'
import Addsite from '../components/HCadd_del_site/adddel'
import HCvip from '../components/HCvip/HCvip'
import HCinformation from '../components/HCinformation/HCinformation'
import HCmodifyPicture from '../components/HCmodifyPicture/HCmodifyPicture'
import HCModifyNickname from '../components/HCModifyNickname/HCModifyNickname'
import HCchangePassword from '../components/HCchangePassword/HCchangePassword'
import HCModifyPhone from '../components/HCModifyPhone/HCModifyPhone'

import SubOrder from '../pages/Order/subOrder'
import PayOrder from '../pages/Order/PayOrder'
import PayOver from '../pages/Order/payOver'
import ChangeSite from '../components/HCchangeSite/changSite'


export default [{
        path: '/',
        name: '默认',
        redirect: '/Home',
        meta: {
            isNeedLogin: false
        }
    },

    {
        path: '/Home',
        name: '主界面',
        component: Home,
        meta: {
            isNeedLogin: false
        },
        children: [{
                path: '/Home/Main',
                name: '首页',
                component: Main,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Order',
                name: '订单',
                component: Order,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Login',
                name: '登录',
                component: Login,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Registered',
                name: '注册',
                component: Registered,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/MyInfo',
                name: '我的',
                component: MyInfo,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/StoreList',
                name: '门店',
                component: StoreList,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/MainSetLocation',
                name: '获取当前位置',
                component: MainSetLocation,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/AddAddress',
                name: '新增收货地址',
                component: AddAddress,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/ShopDetails/:shopId',
                name: '店铺详情',
                component: ShopDetails,
                meta: {
                    isNeedLogin: false
                }
            },

            {
                path: '/Home/Food',
                name: '美食',
                component: Food,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Fruits',
                name: '水果',
                component: Fruits,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Drink',
                name: '饮品',
                component: Drink,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Drug',
                name: '送药上门',
                component: Drug,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/OrderDetails',
                name: '订单详情',
                component: OrderDetails,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCcustomerEvaluation/:orderId',
                name: '评价',
                component: HCcustomerEvaluation,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCcollect',
                name: '我的收藏',
                component: HCcollect,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCsite',
                name: '我的地址',
                component: HCsite,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Changesite',
                name: '修改地址',
                component: ChangeSite,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/Addsite/:userId',
                name: '添加地址',
                component: Addsite,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCvip/:userId',
                name: '我的会员',
                component: HCvip,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCinformation/:userId',
                name: '基本信息',
                component: HCinformation,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCmodifyPicture',
                name: '修改头像',
                component: HCmodifyPicture,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCModifyNickname',
                name: '修改用户名',
                component: HCModifyNickname,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCchangePassword',
                name: '修改密码',
                component: HCchangePassword,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/HCModifyPhone',
                name: '修改手机号码',
                component: HCModifyPhone,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/SubOrder',
                name: '提交订单',
                component: SubOrder,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/PayOrder',
                name: '支付订单',
                component: PayOrder,
                meta: {
                    isNeedLogin: false
                }
            },
            {
                path: '/Home/PayOver',
                name: '支付完成',
                component: PayOver,
                meta: {
                    isNeedLogin: false
                }
            },
        ]
    }
]